package com.qfedu.service.impl;

import com.qfedu.dao.RecordDao;
import com.qfedu.dao.impl.RecordDaoImpl;
import com.qfedu.pojo.History;
import com.qfedu.service.RecordService;

import java.util.List;

public class RecordServiceImpl implements RecordService {

    private RecordDao recordDao=new RecordDaoImpl();

    @Override
    public List<History> queryAllHistory(String idcode) {
        List<History> histories = recordDao.queryAllHistory(idcode);
        return histories;
    }

    @Override
    public List<History> queryOneHistory(String idcode, String status) {
        List<History> allHistory = recordDao.queryOneHistory(idcode, status);
        return allHistory;
    }

}
